﻿@{
    //ViewBag.Title = "库存管理";
    Layout = "~/Views/Shared/_LayoutList.cshtml";
    string title = ViewBag.Title;
}
@(       
 Html.DWZGridFor<Storage>()
    .Title(title)
    .Action(@Url.Action("List", new { Type = ViewBag.Type }))
    .Columns(col =>
    {
        col.Bind(e => e.Id).IsKey();
        col.Bind(e => e.Code).Width(60).AsQuery();
        col.Bind(e => e.Name).Width(100).AsQuery().Align(FlexiGridAlign.Left);
        col.Bind(e => e.Category).Width(50).EnumKey("MaterialCategory");
        col.Bind(e => e.Specification).Width(50).EnumKey("MaterialSpec");
        col.Bind(e => e.Unit).Width(50).EnumKey("MaterialUnit");
        col.Bind(e => e.CurrentPrice).Width(50).Align(FlexiGridAlign.Right);
        col.Bind(e => e.ActualSorage).Width(100).Align(FlexiGridAlign.Right);
    })
)
